import yaml

from app.settings.constants import CONFIG_PATH
from app.settings.setting_schemas import Settings


def load_config() -> Settings:
    with open(CONFIG_PATH, "r") as file:
        data = yaml.safe_load(file)
        return Settings(**data)
